export function generateFakeProduct() {
    const product = {
      bannerImg: `https://picsum.photos/id/${Math.floor(Math.random() * 100)}/400/400,https://picsum.photos/id/${Math.floor(Math.random() * 100)}/400/400,https://picsum.photos/id/${Math.floor(Math.random() * 100)}/400/400`,
      classId: Math.floor(Math.random() * 100) + 1,
      className: `分类-${Math.floor(Math.random() * 5) + 1}`,
      coverImg: `https://picsum.photos/800/400`,
      createTime: new Date().toISOString().split("T")[0],
      enName: `Product-EN-${Math.random().toString(36).substr(2, 5)}`,
      id: Math.floor(Math.random() * 1000) + 100,
      inventoryCount: Math.floor(Math.random() * 100),
      isShow: Math.random() > 0.5 ? 1 : 0,
      name: `商品-${Math.random().toString(36).substr(2, 6)}`,
      enName: `Ver-${Math.random().toString(36).substr(2, 5)}`,
      particulars: "",
      price: parseFloat((Math.random() * 100).toFixed(2)),
      skuVos: [],
      sort: Math.floor(Math.random() * 10),
    };
  
    // 单独设置依赖于 product.name 和 product.id 的字段
    product.particulars = `<p>这是商品 <strong>${product.name}</strong> 的详细描述内容。
    德国当代最具代表性的画家之一尼奥·劳赫，首次在中国举行大规模个展。此次展览由易美术馆主办，呈现其近二十年来的代表作品与近期新作，通过其梦幻般的构图、错位的时间线索以及复杂的象征体系，构建出一个融合意识与潜意识、现实与历史、个体与国家经验的图像世界。

尼奥·劳赫出身于前东德，其创作深受社会主义现实主义、超现实主义与漫画语言的影响。他作品中的人物、机械与场景，仿佛漂浮在逻辑断裂的剧场中，既亲切又陌生，既具叙事性又拒绝解释。本次展览不仅是一次视觉体验，也是一场关于记忆、意识形态与身份构造的深入对话。
<img src="https://picsum.photos/id/${Math.floor(Math.random() * 100)}/400/400" alt="商品图片" /> 
Yi Museum presents the first major solo exhibition in China of Neo Rauch, one of the most influential contemporary painters from Germany. Spanning works from the past two decades as well as recent paintings, the show unveils Rauch’s distinct visual universe—where dream logic, dislocated time, and symbolic complexity merge into a world suspended between consciousness and the subconscious, reality and history, personal and collective memory.

Born and raised in former East Germany, Rauch draws upon socialist realism, surrealism, and graphic illustration in equal measure. His figures, machines, and constructed landscapes hover in theatrical, often fragmented narratives—at once familiar and uncanny, storytelling yet resistant to interpretation. This exhibition is not only a visual journey, but also an invitation to reflect on memory, ideology, and the formation of identity.</p>`;
    product.skuVos = Array.from({ length: Math.floor(Math.random() * 3) + 1 }, (_, i) => ({
      icon: `https://picsum.photos/800/400`,
      id: Math.floor(Math.random() * 1000),
      inventory: Math.floor(Math.random() * 50),
      name: `SKU-${Math.random().toString(36).substr(2, 4)}`,
      productId: product.id,
    }));
  
    return product;
  }